<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />


<!-- 整体页面布局 -->
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<!-- 基础js调用 -->
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/mall.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/feed.js'></script>




<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/pintuan/Public/Member/js/operamasks-ui.min.js"></script>


<!-- 单日期日历插件 -->
<link href="/pintuan/Public/Member/css/datepicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/pintuan/Public/Member/js/datepicker.js"></script>

<!-- 双日期日历插件 -->
<link href='/pintuan/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/daterangepicker.js'></script>

<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script type="text/javascript" src="/pintuan/Public/Member/api/js/product.js"></script>


<script type='text/javascript' src='/pintuan/Public/Member/js/plugin/dragsort/dragsort-0.5.1.min.js'></script>
<script type='text/javascript'>$(document).ready(product_obj.product_type);</script>




</head>

<body>
    <div id="iframe_page">
        <div class="iframe_content">
            <div class="r_nav">
                <ul>
                  <li class="<?php if((ACTION_NAME) == "config"): ?>cur<?php endif; ?>"><a href="<?php echo U('Mycoupon/mycoupon');?>">拼团订单</a></li>
	              <li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/list_product');?>">产品列表</a></li>
	              <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/type_product');?>">拼团设置</a></li>
	              <li class="<?php if((ACTION_NAME) == "news_add"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/liucheng');?>">购物流程</a></li>
               </ul>
            </div>
            


<div id="products" class="r_con_wrap">
	<div class="category">
	    <div class="m_lefter">
	        <dl>
	            <?php if(is_array($productlist)): foreach($productlist as $key=>$v): ?><dd cateid="<?php echo ($v["id"]); ?>" style="cursor: pointer;">
	                    <div class="category ">
	                       <!--  
	                       	<a href="<?php echo U('classify',array('id'=>$v['id']));?>" title="修改"><img src="/pintuan/Public/Member/images/ico/mod.gif" align="absmiddle"></a> 
	                        <a href="<?php echo U('classifyDel',array('id'=>$v['id']));?>" title="删除" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif" align="absmiddle"></a>
	                        -->
	                    &nbsp;&nbsp;<?php echo ($v["name"]); ?>
	                    </div>
	                     <ul data-listidx="0">
                           <?php if(is_array($v["son"])): foreach($v["son"] as $key=>$vv): ?><li style="cursor: pointer;">
	                                <div class="title"><img src="/pintuan/Public/Member/images/ico/jt.gif">&nbsp;&nbsp;<?php echo ($vv["groupnumber"]); ?>人团</div>
	                                <div class="opt" style="display: none;">
	                                    <a href="<?php echo U('type_product',array('id'=>$vv['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif"></a>
	                                    <a href="<?php echo U('delete_type',array('id'=>$vv['id']));?>" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif"></a>
	                                </div>
	                            </li><?php endforeach; endif; ?>
	                    </ul>
	                    <div class="blank9"></div>
		            </dd><?php endforeach; endif; ?>
	        </dl>
	    </div>
	    <div class="m_righter">
	        <form id="add_type_form" class="">
	            <h1><?php if($productinfo['id'] > 0): ?>修改分类<?php else: ?>添加分类<?php endif; ?></h1>
	            <div class="opt_item">
	                <label>成团人数：</label>
	                <span class="input"><input type="text" name="number" value="<?php echo ($productinfo["groupnumber"]); ?>" class="form_input" size="15" maxlength="30" notnull /> <font class="fc_red">*</font></span>
	                <div class="clear"></div>
	            </div>
	            <div class="opt_item">
	                <label>成团价格：</label>
	                <span class="input"><input type="text" name="price" value="<?php echo ($productinfo["price"]); ?>" class="form_input" size="15" maxlength="30" notnull /> <font class="fc_red">*</font></span>
	                <div class="clear"></div>
	            </div>
	            <div class="opt_item">
	                <label>成团商品：</label>
	                <span class="input">
	                    <select name='productid' notnull>
	                        <option value=''>--请选择--</option>
	                        <?php if(is_array($productlist)): foreach($productlist as $key=>$v): ?><option value='<?php echo ($v["id"]); ?>'<?php if(($productinfo["productid"]) == $v["id"]): ?>selected<?php endif; ?>>├<?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
	                    </select>
	                </span>
	                <div class="clear"></div>
	            </div>
	             <div class="opt_item">
	                <label></label>
	                <span class="input"><input type="button" class="btn_green btn_w_120" name="submit_button" value="<?php if($productinfo['id'] > 0): ?>修改分类<?php else: ?>添加分类<?php endif; ?>" /><a href="<?php echo U('index');?>" class="btn_gray">返回</a></span>
	                <div class="clear"></div>
	            </div>
	             <input type="hidden" name="sign" value="">
	             <input type="hidden" name="id" value="<?php echo ($productinfo["id"]); ?>">
	        </form>
	    </div>
	    <div class="clear"></div>
	</div>
</div>    


         </div>
	</div>
</body>
</html>